package com.zkx.fssb.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class Orders implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer orderId;

    private Integer orderStatus;

    private Integer userId;

    private Integer addressId;

    private Double orderAmount;

    private String orderPhone;

    private String orderAddress;

    private String orderConsignee;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkoutTime;


}
